package com.exception;
//自定义异常类
public class MyExcepion extends Exception {

    private int detail;

    public MyExcepion(int detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "MyExcepion{" + "detail=" + detail + '}';
    }
}